package org.jeecg.modules.demo3.fly.entity;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import net.sf.saxon.functions.ConstantFunction;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 作业管理
 * @Author: jeecg-boot
 * @Date:   2021-01-28
 * @Version: V1.0
 */
@Data
@TableName("axhk_work_management")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="axhk_work_management对象", description="作业管理")
public class AxhkWorkManagement implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**任务创建人*/
    @ApiModelProperty(value = "任务创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**任务名称*/
	@Excel(name = "任务名称", width = 15)
    @ApiModelProperty(value = "任务名称")
    private java.lang.String taskName;
	/**地区*/
	@Excel(name = "地区", width = 15)
    @ApiModelProperty(value = "地区")
    private java.lang.String area;
    /**任务创建时间*/
    @Excel(name = "任务创建时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "任务创建时间")
    private java.util.Date startWork;
	/**作物*/
	@Excel(name = "作物", width = 15, dicCode = "Crop")
	@Dict(dicCode = "Crop")
    @ApiModelProperty(value = "作物")
    private java.lang.String crop;
	/**作业类型*/
	@Excel(name = "作业类型", width = 15, dicCode = "Jop_Type")
	@Dict(dicCode = "Jop_Type")
    @ApiModelProperty(value = "作业类型")
    private java.lang.String jopType;
	/**防止目标*/
	@Excel(name = "防止目标", width = 15, dicCode = "Prevent_Target")
	@Dict(dicCode = "Prevent_Target")
    @ApiModelProperty(value = "防止目标")
    private java.lang.String preventTarget;
	/**农机总数*/
	@Excel(name = "农机总数", width = 15)
    @ApiModelProperty(value = "农机总数")
    private java.lang.Integer wrjCount;
	/**待确认架数*/
	@Excel(name = "待确认架数", width = 15)
    @ApiModelProperty(value = "待确认架数")
    private java.lang.Integer notarizeNum;
    /**地块名称*/
    @Excel(name = "地块名称", width = 15)
    @ApiModelProperty(value = "地块名称")
    private java.lang.String landName;


    /*群id*/
    @TableField(exist = false)
    private String fluckId;

    /*地块id*/
    @TableField(exist = false)
    private String landId;

    /*地块完成标识（未 0 / 已 1）*/
    @TableField(exist = false)
    private Integer finish;

    @TableField(exist=false)
    private AxhkLandManagement axhkLandManagement = new AxhkLandManagement();

    public AxhkWorkManagement() {
    }

    public AxhkWorkManagement(String createBy, String taskName, String area, String crop, String jopType, String preventTarget,String landId) {
        this.createBy = createBy;
        this.taskName = taskName;
        this.area = area;
        this.crop = crop;
        this.jopType = jopType;
        this.preventTarget = preventTarget;
        this.landId = landId;
    }
}
